package at.jku.se.fastsell.rest;

import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.ResponseBuilder;

public class RestHelper {

	public static Response buildResponse(String response) {
		ResponseBuilder rb;

		if (response.equals("OK")) {
			rb = Response.ok();
		} else {
			rb = Response.notModified(response);
		}
		return rb.build();
	}
}
